package com.boom.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api
@RestController
public class Conad {

    @ApiOperation("Hello spring boot 方法")
    @GetMapping("/")
    public String login(@RequestParam(required = false)  @ApiParam("名字") String name ){
        if (name!=null){
            return "a";
        }
        return "b";
    }
}
